function printPage(action){
	if (!window.print){
		alert("Sorry unable to print the page")
		return
	}
	if(action=='billPrint'){
		var showPayMode1 = document.getElementById("showPayMode");
		var showPayMode =showPayMode1.value;
		var payMode = document.getElementById("selectedMode");
		payMode.innerHTML="<span class='billLableTxt'>Payment Mode :</span>"+showPayMode;
		
		var payModeHide = document.getElementById("payMode");
		payModeHide.innerHTML="";
		var addRow = document.getElementById("addRow");
		addRow.innerHTML="";
		
		var footerDiv = document.getElementById("footerDiv");
		footerDiv.innerHTML="";
		var headerDiv = document.getElementById("headerDiv");
		headerDiv.innerHTML="";
		
		var diffBtn = document.getElementById("diffBtn");
		diffBtn.innerHTML="";


		//jQuery(".billHideClass").hide();	
		window.print();
	}
	else if(action=='Barcode'){
		var numCode = document.getElementById("numCode").innerHTML;
		jQuery(".billHideClass").hide();
		jQuery(".mainbody").hide();
		//alert("numCode=="+numCode);
		window.print(numCode);
	}
}
